<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$theme['title']}-我的</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="{$_G['URL']['EDUCATION_STATIC_PATH']}/css/reset.css">
    <link rel="stylesheet" type="text/css" href="https://css2020.yixuan.net/2020css/yx2020/css/swiper.min.css">
    <link rel="stylesheet" type="text/css" href="{$_G['URL']['EDUCATION_STATIC_PATH']}/css/style.css">
    <script src="{$_G['URL']['EDUCATION_STATIC_PATH']}/js/screen.js"></script>
    <script src="https://css2020.yixuan.net/2020css/yx2020/js/jquery.js?v=2"></script>
    <script src="{$_G['URL']['EDUCATION_STATIC_PATH']}/js/swiper.min.js"></script>
    <script src="{$_G['URL']['LOTTERY_CSS']}lottery/js/layer/layer.js"></script>
    <style>
        .footer{
            height: 1rem;
            padding: .12rem .32rem 0 .12rem;
        }
        .footer .home{
            margin-top: .1rem;
            padding-top: .40rem !important;
        }
        .footer .kf{
            margin-top: .1rem;
            padding-top: .40rem !important;
        }
        .footBtn a{
            height: .8rem !important;
            background: linear-gradient(90deg, {$config['formcolorhead']} 15.44%, {$config['formcolortop']} 90.59%);
            line-height:.8rem;
        }
    </style>
</head>
<body class="grayBox">
<div class="userPage">
    <img src="{$_G['URL']['EDUCATION_STATIC_PATH']}/images/userBg.png" class="userBg" >
    <div class="userPos">
        <div class="userInfor">
            <div class="userImg">
                <img src="{php echo $fans['avatar']?$fans['avatar']:'https://css2020.yixuan.net/2020css/yx2020/images/question.png';}" >
            </div>
            <p>{php echo $fans['username']?$fans['username']:$fans['nickname'];}</p>
        </div>
        <div class="userData">
            <p>
                钱包余额<span>¥<b>{$commssum}</b></span>
            </p>
            <p>
                历史提现<span>¥<b>{php echo $totalsuccess?$totalsuccess:0;}</b></span>
            </p>
        </div>
    </div>
</div>
<div class="userContant">
    <div class="myReward">
        <a href="/{php echo createMobileUrl('wx', array('themeid'=>$themeid,'r'=>'education.index.reword','from'=>'mobile'));}">
            我的奖励
        </a>
    </div>
    <div class="myReward">
        <a href="/{php echo createMobileUrl('wx', array('themeid'=>$themeid,'r'=>'education.index.mineCourse','from'=>'mobile'));}">
            我的{$course_other_name}
        </a>
    </div>
    <div class="inventRecord">
        <h2>邀请记录</h2>
        <ul class="inventData">
            <li>
                <p>{$user_share_num}</p>
                <span>分享人数(人)</span>
            </li>
            <li>
                <p>{$user_tuijian_num}</p>
                <span>邀请人数(人)</span>
            </li>
        </ul>
        <table class="inventTable" cellspacing="0" cellpadding="0">
            <tr>
                <th>用户</th>
                <th>身份</th>
                <th>时间</th>
            </tr>
            {loop $tuijian_list $item}
            <tr>
                <td>
                    <img src="{$item['avatar']}" >
                    {$item['username']}
                </td>
                {if $item['type']==0}
                <td>团长</td>
                {elseif $item['type']==1}
                <td>团员</td>
                {else}
                <td>单买</td>
                {/if}
                <td>{php echo date("Y-m-d H:i:s",time());}</td>
            </tr>
            {/loop}
        </table>
    </div>
<!--    <div class="userAgreement">-->
<!--        <a href="">-->
<!--            用户协议-->
<!--        </a>-->
<!--    </div>-->
</div>
{if $theme['yixuanbanquan'] != '1'}
<div class="metro_container content" style="text-align:center; padding:10px 0px 0px";>
    <a style="font-size:0.2rem;" href="{php echo empty($theme['USERURL'])?$system['s']['yixuanurl']:$theme['USERURL'];}">{php echo empty($theme['USERJISHU'])?$system['s']['yixuanjishu']:html_entity_decode($theme['USERJISHU'], ENT_QUOTES);}</a>
</div>
{/if}


<div class="h160"></div>
<div class="footer" >
    <a href="/{php echo createMobileUrl('index', array('themeid'=>$themeid));}" class="home">首页</a>
    <a href="javascript:void(0);" class="kf" onclick="showService()">客服</a>
    <div class="footBtn">
        <a href="javascript:void(0);" onclick="showPoster()">
            {if $poster_info['img_url']}
            领取我的活动海报
            {else}
            {$poster_info['tips']}
            {/if}
        </a>
    </div>
</div>
</body>
{include file='../../plugin/education/template/mobile/poster'}
{include file='base/addlog'}
</html>
<!--判断补录-->
<script>
    let can_new_select = "{$can_new_select}";
    if (can_new_select){
        layer.confirm("课程以及礼品可以进行补录，是否立即进行", {
            icon: 3,
            title: "系统提示",
            btn: ['确认', '稍后']
        }, function (index) {
            //确认
            layer.close(index);
            window.location.href="/{php echo createMobileUrl('wx', array('themeid'=>$themeid,'r'=>'education.index.Course'));}";
        }, function (index) {
            //稍后
            layer.close(index);
        });
    }

</script>
